﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Net5ApiAndEfMySql.DtoModel;
using Net5ApiAndEfMySql.PoModel.SystemAdmin;

namespace Net5ApiAndEfMySql.IService.SystemAdmin
{
    public interface IRoleDbService : IBaseService
    {
        /// <summary>
        /// 角色的分页查询
        /// </summary>
        /// <param name="m"></param>
        /// <returns></returns>
        PagerResult<RoleDbPo> GetPageList(SearchModel m);
        /// <summary>
        /// 角色的添加
        /// </summary>
        /// <param name="role"></param>
        /// <returns></returns>
        bool AddRole(RoleDbPo role);
        /// <summary>
        /// 反填操作
        /// </summary>
        /// <param name="role_id"></param>
        /// <returns></returns>
        RoleDbPo GetRoleById(int role_id);
        /// <summary>
        /// 修改角色表
        /// </summary>
        /// <param name="but"></param>
        /// <returns></returns>
        public bool UpdateRoleDbPo(RoleDbPo role);
        /// <summary>
        /// 删除角色表
        /// </summary>
        /// <param name="role_id"></param>
        /// <returns></returns>
        bool DeleteRoleDbPo(int role_id);
    }
}
